package com.healthcloud.service.impl;


import com.healthcloud.dao.IntegralMasterMapper;
import com.healthcloud.entity.IntegralMaster;
import com.healthcloud.service.IntegralMasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhangjie
 */
@Service
public class IntegralMasterServiceImpl implements IntegralMasterService {

    @Autowired
    private IntegralMasterMapper integralMasterMapper;

    @Override
    public IntegralMaster findByUserId(Integer userId) {
        return integralMasterMapper.getByUserId(userId);
    }

    @Override
    public void score(Integer id) {
        integralMasterMapper.score(id);
    }

    @Override
    public void save(IntegralMaster integralMaster) {
        integralMasterMapper.save(integralMaster);
    }
}
